package com.asiainfo.ssm.execute.service.impl;

import com.ai.appframe2.service.ServiceFactory;
import com.asiainfo.ssm.execute.bo.BOExecSmsRecordEngine;
import com.asiainfo.ssm.execute.dao.interfaces.IExecSmsRecordDAO;
import com.asiainfo.ssm.execute.ivalues.IBOExecSmsRecordValue;
import com.asiainfo.ssm.execute.service.interfaces.IExecSmsRecordSV;

public class ExecSmsRecordSVImpl implements IExecSmsRecordSV{

	@Override
	public IBOExecSmsRecordValue getExecSmsRecord(String billId) throws Exception { 
		IExecSmsRecordDAO dao = (IExecSmsRecordDAO)ServiceFactory.getService(IExecSmsRecordDAO.class);
 		return dao.getExecSmsRecord(billId);
	}

	@Override
	public void saveExecSmsRecord(IBOExecSmsRecordValue smsRecord) throws Exception {
		IExecSmsRecordDAO dao = (IExecSmsRecordDAO)ServiceFactory.getService(IExecSmsRecordDAO.class);
		dao.saveExecSmsRecord(smsRecord);
	}

	@Override
	public void saveExecSmsRecord(IBOExecSmsRecordValue[] smsRecord) throws Exception {
		IExecSmsRecordDAO dao = (IExecSmsRecordDAO)ServiceFactory.getService(IExecSmsRecordDAO.class);
		dao.saveExecSmsRecord(smsRecord);		
	}
}
